﻿/*using System;
using Project.API.Models;
using Project.BLL;
using Project.Model;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;

namespace Project.API.Controllers.OrdersControllers
{

    public class OrdersComtroller: ApiController
    {
        [HttpGet]
        public ResultData<List<OrdersDto>> Get(int id)
        {
            int count = 0;
            var list = new OrdersBll().GetUsers(id);
            var roles = new OrdersBll().Query();
            var data = from u in list
                       select new OrdersDto
                       {
                        Did = u.Did,
                        UserId =(int)u.UserId,
                        Gpvid =(int)u.Gpvid,
                        CreateDate=u.CreateDate,
                        OrderNumber =(int)u.OrderNumber,
                        TotalAmount =(int)u.TotalAmount,
                        OrderStatus = u.OrderStatus,
                        Notes=u.Notes
                       };
            ResultData<List<OrdersDto>> result = new ResultData<List<OrdersDto>>();
            result.code = 0;
            result.msg = "ok";
            result.data = data.ToList();
            return result;
        }


    }
}*/